<!DOCTYPE html>
<html>
	<head>
		<title>每日验证码</title>
		<meta http-equiv="Pragma" CONTENT="no-cache">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="renderer" content="webkit">
		<link href="${cxt !}/sb/themes/demo.css" rel="stylesheet" type="text/css" />
		<%include("/common/include.html"){}%>
		
	</head>
	<body >
		
		<div class="easyui-layout" style="width:100%;height:100%;">
			
			
			
				
				<div class="easyui-layout" style="width:100%;">
					<div id="info_tabs"  style="width:100%;height: 150px;">
							<div style="margin-top: 10px">
							<span  id="cltz" > 
							<span >验证码：</span>
							<input id="yzm" value="${yzm ! }"  readonly = "true" labelPosition="after" style="height: 35px;width: 150px;text-align:center">
							</span>
							<a href="#" id="saveInfo"    class="easyui-linkbutton" data-options="iconCls:'icon-ok'" style="height: 40px;width: 160px;" onclick="refresh()">刷新</a>
							</div>
					</div>
					
					

				</div>	
				
			</div>
			
	</body>
	<script>
	function  refresh(){
		
		var yzm = document.getElementById("yzm").value;
        var url='todayyzm/refresh';
		var data={"yzm":yzm};
		//var result = common_ajax.ajaxFunc(url, data);
		$.post(url,data,function(date){
			if(date != "200"){
				
				$.alert(parent.$, date);
			}else{
				location.reload();
				
			}
		
					
				})
				
			
		
		 
	}
	</script>
</html>
